function getMaterialForInput(selectInput,form) {
    $.ajax({
        url: CXL.ctxPath + '/wms/materialtype/getdatalist',
        type: 'get',
        dataType: 'json',
        success: function (data) {
            $.each(data, function (index, item) {
               selectInput.append(new Option(item.name, item.id));// 下拉菜单里添加元素
            });
            form.render('select');
        }
    });
}

function getOutportForInput(selectInput,form) {
    $.ajax({
        url: CXL.ctxPath + '/wms/output/getdatalist',
        type: 'get',
        dataType: 'json',
        success: function (data) {
            $.each(data, function (index, item) {
                selectInput.append(new Option(item.name, item.id));// 下拉菜单里添加元素
            });
            form.render('select');
        }
    });
}


